﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true"
    CodeBehind="RE_ApprovalRequest.aspx.cs" Inherits="vHCS.K2App.MdlK2.ResourceRequest.Ver1.RE_ApprovalRequest" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.Message" TagPrefix="cc1" %>
<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.DataReader" TagPrefix="core" %>
<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.Security" TagPrefix="security" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainToolbar" runat="server">
    <cc1:MessageSetting ID="mssUsedMessageList" runat="server">
        <Items>
            <%-- Thông Báo Chọn Dòng Cần Xóa : Dùng Cho JavaScript--%>
            <cc1:Message Code="10003" />
            <%-- Thông Báo Xác Nhận Thao Tác Xóa : Dùng Cho JavaScript--%>
            <cc1:Message Code="10011" />
        </Items>
    </cc1:MessageSetting>
    <div class="button">
        
        <asp:Label ID="lblGuide" runat="server" Text="Xem hướng dẫn " Visible="false"></asp:Label>
        <asp:HyperLink ID="hplDeptGuide" runat="server" NavigateUrl="http://youtu.be/z9PrwXpj1vU"
            Target="_blank" Text="tại đây" Visible="false"></asp:HyperLink>
        <asp:HyperLink ID="hplHRBPGuide" runat="server" NavigateUrl="http://youtu.be/Hz4kvDZ997w"
            Target="_blank" Text="tại đây" Visible="false"></asp:HyperLink>&nbsp;
       
        <asp:Button ID="btnApprove_Top" runat="server" Text="Approve" CssClass="btnApprove"
            OnClick="btnApprove1_Click" ValidationGroup="Approve" />
        <asp:Button ID="btnReject_Top" runat="server" Text="Reject" CssClass="btnReject"
            OnClick="btnReject_Click" ValidationGroup="Approve" />
    </div>
    <%--<asp:Button ID="btnList_Top" runat="server" Text="Danh sách" CssClass="btnList" OnClick="btnList_Top_Click" />--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:HiddenField ID="hdfDepartment" runat="server" />
    <asp:HiddenField ID="hdfRequestID" runat="server" />
    <asp:HiddenField ID="hdfRoleNext" runat="server" />
    <asp:HiddenField ID="hdfUserRole" runat="server" />
    <asp:HiddenField ID="hdfStatus" runat="server" />
    <asp:HiddenField ID="hdfDepartment_K2" runat="server" />
    <asp:HiddenField ID="hdfDivision_K2" runat="server" />
    <asp:HiddenField ID="hdfRequestCode" runat="server" />
    <asp:HiddenField ID="hdfSharedUser" runat="server" />
    <asp:HiddenField ID="hdfPCStandard" runat="server" />
    <div class="controlWrapper">
        <div class="headerSession">
            <asp:Label ID="lblThongtinchung" runat="server" Text="GENERAL INFORMATION"></asp:Label>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label2" runat="server" Text="Division"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtBoPhan" ReadOnly="true" runat="server" MaxLength="20" CssClass="inputText"
                    Width="250px"></asp:TextBox>
            </div>
            <div class="label">
                <asp:Label ID="Label3" runat="server" Text="Department"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtPhongBan" ReadOnly="true" runat="server" MaxLength="20" CssClass="inputText"
                    Width="250px"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label4" runat="server" Text="Requester"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtRequester" ReadOnly="true" runat="server" MaxLength="20" CssClass="inputText"
                    Width="250px"></asp:TextBox>
            </div>
            <div class="label">
                <asp:Label ID="Label5" runat="server" Text="Requester role"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtRequesterRole" ReadOnly="true" runat="server" MaxLength="20"
                    CssClass="inputText" Width="250px"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label6" runat="server" Text="Request Date"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtNgayYeuCau" ReadOnly="true" runat="server" MaxLength="20" CssClass="inputText"
                    Width="250px"></asp:TextBox>
            </div>
            <div class="label">
                <asp:Label ID="Label7" runat="server" Text="Expected Date"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtNgayHiVong" ReadOnly="true" runat="server" MaxLength="20" CssClass="inputText"
                    Width="250px"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div style="display: none">
            <div class="div4Column">
                <div class="label">
                    <asp:Label ID="Label8" runat="server" Text="Comment for Close"></asp:Label>
                </div>
                <div class="control">
                    <textarea id="txtGhiChuClose" rows="2" readonly="true" runat="server" style="width: 711px"
                        cols="7"></textarea>
                </div>
                <div class="divClear">
                </div>
            </div>
        </div>
        <br />
        <br />
        <div class="headerSession">
            <asp:Label ID="Label1" runat="server" Text="RECRUITMENT INFORMATION"></asp:Label>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="lblChucVu" runat="server" Text="Title/ Role"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadComboBox ID="cboChucvu" runat="server" Width="255px" DataSourceID="dtsJobTitle"
                    OnClientFocus="ShowDropDown" DataTextField="Name" DataValueField="ID" AutoPostBack="True"
                    Filter="Contains" OnSelectedIndexChanged="cboChucvu_SelectedIndexChanged" OnItemsRequested="RadComboBox_ItemRequested"
                    EnableLoadOnDemand="True" MarkFirstMatch="true" HighlightTemplatedItems="True"
                    AllowCustomText="false" Enabled="false">
                    <HeaderTemplate>
                        <ul class="comboHeader">
                            <li class="code">
                                <asp:Label ID="Label2" runat="server" Text="Code"></asp:Label>
                            </li>
                            <li class="name">
                                <asp:Label ID="Label3" runat="server" Text="Name"></asp:Label>
                            </li>
                            <li class="divClear"></li>
                        </ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <ul class="comboItem">
                            <li class="code">
                                <%#DataBinder.Eval(Container.DataItem, "Code")%>
                            </li>
                            <li class="name">
                                <%#DataBinder.Eval(Container.DataItem, "Name")%>
                            </li>
                        </ul>
                    </ItemTemplate>
                    <FooterTemplate>
                        <div class="comboFooter">
                            <asp:Label ID="Label4" runat="server" Text="Please enter text to show more items"></asp:Label>
                        </div>
                    </FooterTemplate>
                </telerik:RadComboBox>
                <br />
                <core:CoreDataSource ID="dtsJobTitle" runat="server" SelectMethod="GetComboItems_ForWR"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_JobTitleCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="jobLevelId" DefaultValue="0" DbType="Int64" />
                        <asp:Parameter Name="jobFamilyId" DefaultValue="0" DbType="Int64" />
                        <asp:Parameter Name="jobGroupId" DefaultValue="0" DbType="Int64" />
                        <asp:Parameter Name="subGroupId" DefaultValue="0" DbType="Int64" />
                        <asp:Parameter Name="prefix" DefaultValue="" DbType="String" />
                        <asp:Parameter Name="addNullItem" DefaultValue="true" DbType="Boolean" />
                        <asp:Parameter Name="getTop" DefaultValue="true" DbType="Boolean" />
                        <asp:Parameter Name="effectivedate" DefaultValue="" DbType="DateTime" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <div class="divClear">
            </div>
        </div>

        <div class="div4Column">
            <div class="label">
                <asp:Label ID="lblCapBac" runat="server" Text="Level"></asp:Label>
                <%--<span class="require">(*)</span>--%>
            </div>
            <div class="control">
                <telerik:RadComboBox ID="cboCapbac" runat="server" Width="255px" AllowCustomText="false"
                    MarkFirstMatch="true" OnClientFocus="ShowDropDown" DataTextField="Name" DataValueField="Id"
                    DataSourceID="dtsJobLevel" AutoPostBack="true" Enabled="false">
                </telerik:RadComboBox>
                <br />
                <%--<asp:RequiredFieldValidator ID="ReqCapbac" runat="server" ControlToValidate="cboCapbac"
                    ErrorMessage="Level is not blank" CssClass="validation" Display="Dynamic" ValidationGroup="Approve"></asp:RequiredFieldValidator>--%>
                <core:CoreDataSource ID="dtsJobLevel" runat="server" SelectMethod="GetComboItems_ByJotitle"
                    TypeName="vHCS.LS.Business.LS_JobLevelCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="p_strPrefix" DefaultValue="" DbType="String" />
                        <asp:Parameter Name="p_bAddNullItem" DefaultValue="false" DbType="Boolean" />
                        <asp:Parameter Name="p_bGetTop" DefaultValue="false" DbType="Boolean" />
                        <asp:Parameter Name="jobtitle" DefaultValue="0" DbType="Int64" />
                        <asp:Parameter Name="effectivedate" DefaultValue="" DbType="DateTime" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <div class="divClear">
            </div>
        </div>

        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label9" runat="server" Text="Educational Level"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadComboBox ID="cboTrinhDoHocVan" runat="server" Width="255px" Rows="3"
                    DataTextField="Name" DataValueField="ID" EnableLoadOnDemand="true" Filter="Contains"
                    DataSourceID="dtsLoaiBangCap" Enabled="false">
                </telerik:RadComboBox>
                <core:CoreDataSource ID="dtsLoaiBangCap" runat="server" SelectMethod="GetComboItems_DegreeTypeRR"
                    TypeName="vHCS.HR.Business.HR_DegreeCollection" EnableCaching="False" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="isdegree" DefaultValue="true" DbType="Boolean" />
                        <asp:Parameter Name="AddNullItem" DefaultValue="true" DbType="Boolean" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label10" runat="server" Text="Professional Chart"></asp:Label>
            </div>
            <div class="control">
                <asp:Panel ID="pnlProChart" runat="server">
                    <telerik:RadToolTip ID="rttProChart_input" runat="server" TargetControlID="cboProChart"
                        Text="" />
                    <telerik:RadComboBox ID="cboProChart" runat="server" Width="717px" DropDownWidth="717px"
                        Filter="Contains" OnClientDropDownOpened="treeProChart.OnClientDropDownOpenedHandler"
                        OnClientFocus="ShowDropDown" EmptyMessage="Select professional chart" ExpandAnimation-Type="None"
                        OnClientSelectedIndexChanged="tooltip_prochart.SetToolTip_OrChart" CollapseAnimation-Type="None"
                        Enabled="false">
                        <ItemTemplate>
                            <div class="noneItem" onclick="treeProChart.noneItemClick(); return false;">
                            </div>
                            <div id="divProChart" onclick="treeProChart.StopPropagation(event);">
                                <telerik:RadTreeView runat="server" ID="trvProChart" Width="100%" OnClientNodeClicking="treeProChart.nodeClicking"
                                    DataFieldID="HierarchyId" DataFieldParentID="ParentId" DataSourceID="dtsProChart"
                                    DataTextField="HierarchyName" DataValueField="HierarchyId">
                                </telerik:RadTreeView>
                            </div>
                            <div class="divButton">
                                <asp:LinkButton ID="btnCollapseAll_Pro" CssClass="treeCollapse" OnClientClick="treeProJobChart.treeCollapseAllNodes(); return false;"
                                    runat="server" Text="Collapse"></asp:LinkButton>
                                <asp:LinkButton ID="btnExpandAll_Pro" CssClass="treeExpand" OnClientClick="treeProJobChart.treeExpandAllNodes(); return false;"
                                    runat="server" Text="Expanse"></asp:LinkButton>
                            </div>
                        </ItemTemplate>
                        <Items>
                            <telerik:RadComboBoxItem Text="" Value="" />
                        </Items>
                        <ExpandAnimation Type="None"></ExpandAnimation>
                        <CollapseAnimation Type="None"></CollapseAnimation>
                    </telerik:RadComboBox>
                    <br />
                    <asp:CustomValidator ID="CustomValidator1" runat="server" CssClass="validation" ValidationGroup="Approve"
                        Display="Dynamic" ClientValidationFunction="checkProJob" ErrorMessage="Vui lòng chọn đến subgroup của cơ cấu chuyên môn.">
                    </asp:CustomValidator>
                    <core:CoreDataSource ID="dtsProChart" runat="server" SelectMethod="FindProChart_ByJobtitle"
                        TypeName="vHCS.HR.Business.HIE_HierarchyCollection" MaximumRowsParameterName="">
                        <SelectParameters>
                            <asp:ControlParameter Name="Jobtitle" ControlID="cboChucvu" PropertyName="SelectedValue"
                                DbType="Int64" />
                            <asp:Parameter Name="prefix" DefaultValue="" DbType="String" />
                            <asp:Parameter Name="effectivedate" DefaultValue="" DbType="DateTime" />
                        </SelectParameters>
                    </core:CoreDataSource>
                </asp:Panel>
            </div>
            <div class="divClear">
            </div>
            <asp:Label ID="lblCanhBaoProChart" runat="server" Visible="false" Text="There is currently no link between structural positions and expertise. Please update the function list."
                CssClass="validation"></asp:Label>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label11" runat="server" Text="Management Chart"></asp:Label>
            </div>
            <div class="control">
                <%--<asp:Panel ID="pnlMgtChart" runat="server">--%>
                <telerik:RadToolTip ID="rttMgtChart_Input" runat="server" TargetControlID="cboMgtChart"
                    Text="">
                </telerik:RadToolTip>
                <telerik:RadComboBox ID="cboMgtChart" runat="server" Width="717px" DropDownWidth="717px"
                    OnClientFocus="ShowDropDown" OnClientDropDownOpened="treeMgtChart.OnClientDropDownOpenedHandler"
                    OnClientSelectedIndexChanged="tooltip_mgtchart.SetToolTip_OrChart" EmptyMessage="Select mangement chart"
                    ExpandAnimation-Type="None" CollapseAnimation-Type="None" Enabled="false">
                    <ItemTemplate>
                        <div class="noneItem" onclick="treeMgtChart.noneItemClick();">
                        </div>
                        <div id="divMgtChart" onclick="treeMgtChart.StopPropagation(event);">
                            <telerik:RadTreeView runat="server" ID="trvMgtChart" Width="100%" DataFieldID="HierarchyId"
                                DataFieldParentID="ParentId" DataSourceID="dtsMgtChart" DataTextField="HierarchyName"
                                DataValueField="HierarchyId" OnClientNodeClicking="treeMgtChart.nodeClicking">
                            </telerik:RadTreeView>
                        </div>
                        <div class="divButton">
                            <asp:LinkButton ID="btnCollapseAll" CssClass="treeCollapse" OnClientClick="treeMgtJobChart.treeCollapseAllNodes(); return false;"
                                runat="server" Text="Collapse"></asp:LinkButton>
                            <asp:LinkButton ID="btnExpandAll" CssClass="treeExpand" OnClientClick="treeMgtJobChart.treeExpandAllNodes(); return false;"
                                runat="server" Text="Expanse"></asp:LinkButton>
                        </div>
                    </ItemTemplate>
                    <Items>
                        <telerik:RadComboBoxItem Text="" Value="" />
                    </Items>
                    <ExpandAnimation Type="None"></ExpandAnimation>
                    <CollapseAnimation Type="None"></CollapseAnimation>
                </telerik:RadComboBox>
                <core:CoreDataSource ID="dtsMgtChart" runat="server" SelectMethod="FindMgtChart_ByJobtitle"
                    TypeName="vHCS.HR.Business.HIE_HierarchyCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="Jobtitle" ControlID="cboChucvu" PropertyName="SelectedValue"
                            DbType="Int64" />
                        <asp:Parameter Name="prefix" DefaultValue="" DbType="String" />
                        <asp:Parameter Name="effectivedate" DefaultValue="" DbType="DateTime" />
                    </SelectParameters>
                </core:CoreDataSource>
                <%-- </asp:Panel>--%>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label12" runat="server" Text="Description"></asp:Label>
            </div>
            <div class="merge3">
                <table width="80%">
                    <tr>
                        <td width="50%">
                            <telerik:RadToolTip ID="rttTiengViet" runat="server" TargetControlID="txtMoTaTiengViet"
                                Text="input Vietnamese">
                            </telerik:RadToolTip>
                            <telerik:RadEditor ID="txtMoTaTiengViet" Width="100%" Height="250px" runat="server"
                                EditModes="Preview">
                                <Tools>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="FontName" />
                                        <telerik:EditorTool Name="RealFontSize" Text="Size" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="InsertParagraph" />
                                        <telerik:EditorTool Name="InsertTable" />
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                        <telerik:EditorTool Name="InsertSymbol" />
                                    </telerik:EditorToolGroup>
                                </Tools>
                                <CssFiles>
                                    <telerik:EditorCssFile Value="~/Styles/RadEditor.css" />
                                </CssFiles>
                            </telerik:RadEditor>
                        </td>
                        <td width="50%">
                            <telerik:RadToolTip ID="rttTiengAnh" runat="server" TargetControlID="txtMoTaTiengAnh"
                                Text="input English">
                            </telerik:RadToolTip>
                            <telerik:RadEditor ID="txtMoTaTiengAnh" Width="100%" Height="250px" runat="server"
                                EditModes="Preview">
                                <Tools>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="FontName" />
                                        <telerik:EditorTool Name="RealFontSize" Text="Size" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="InsertParagraph" />
                                        <telerik:EditorTool Name="InsertTable" />
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                        <telerik:EditorTool Name="InsertSymbol" />
                                    </telerik:EditorToolGroup>
                                </Tools>
                                <CssFiles>
                                    <telerik:EditorCssFile Value="~/Styles/RadEditor.css" />
                                </CssFiles>
                            </telerik:RadEditor>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label13" runat="server" Text="Requirement"></asp:Label>
            </div>
            <div class="merge3">
                <table width="80%">
                    <tr>
                        <td width="50%">
                            <telerik:RadToolTip ID="rttYeuCauTiengViet" runat="server" TargetControlID="txtYeuCauTiengViet"
                                Text="input Vietnamese">
                            </telerik:RadToolTip>
                            <telerik:RadEditor ID="txtYeuCauTiengViet" Width="100%" Height="250px" runat="server"
                                EditModes="Preview">
                                <Tools>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="FontName" />
                                        <telerik:EditorTool Name="RealFontSize" Text="Size" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="InsertParagraph" />
                                        <telerik:EditorTool Name="InsertTable" />
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                        <telerik:EditorTool Name="InsertSymbol" />
                                    </telerik:EditorToolGroup>
                                </Tools>
                                <CssFiles>
                                    <telerik:EditorCssFile Value="~/Styles/RadEditor.css" />
                                </CssFiles>
                            </telerik:RadEditor>
                        </td>
                        <td width="50%">
                            <telerik:RadToolTip ID="rttYeuCauTiengAnh" runat="server" TargetControlID="txtYeuCauTiengAnh"
                                Text="input English">
                            </telerik:RadToolTip>
                            <telerik:RadEditor ID="txtYeuCauTiengAnh" Width="100%" Height="250px" runat="server"
                                EditModes="Preview">
                                <Tools>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="FontName" />
                                        <telerik:EditorTool Name="RealFontSize" Text="Size" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="InsertParagraph" />
                                        <telerik:EditorTool Name="InsertTable" />
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                        <telerik:EditorTool Name="InsertSymbol" />
                                    </telerik:EditorToolGroup>
                                </Tools>
                                <CssFiles>
                                    <telerik:EditorCssFile Value="~/Styles/RadEditor.css" />
                                </CssFiles>
                            </telerik:RadEditor>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label14" runat="server" Text="Preference"></asp:Label>
            </div>
            <div class="merge3">
                <table width="80%">
                    <tr>
                        <td width="50%">
                            <telerik:RadToolTip ID="rttUuTienTiengViet" runat="server" TargetControlID="txtUuTienTiengViet"
                                Text="input Vietnamese">
                            </telerik:RadToolTip>
                            <telerik:RadEditor ID="txtUuTienTiengViet" Width="100%" Height="250px" runat="server"
                                EditModes="Preview">
                                <Tools>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="FontName" />
                                        <telerik:EditorTool Name="RealFontSize" Text="Size" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="InsertParagraph" />
                                        <telerik:EditorTool Name="InsertTable" />
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                        <telerik:EditorTool Name="InsertSymbol" />
                                    </telerik:EditorToolGroup>
                                </Tools>
                                <CssFiles>
                                    <telerik:EditorCssFile Value="~/Styles/RadEditor.css" />
                                </CssFiles>
                            </telerik:RadEditor>
                        </td>
                        <td width="50%">
                            <telerik:RadToolTip ID="rttUuTienTiengAnh" runat="server" TargetControlID="txtUuTienTiengAnh"
                                Text="input English">
                            </telerik:RadToolTip>
                            <telerik:RadEditor ID="txtUuTienTiengAnh" Width="100%" Height="250px" runat="server"
                                EditModes="Preview">
                                <Tools>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="FontName" />
                                        <telerik:EditorTool Name="RealFontSize" Text="Size" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="InsertParagraph" />
                                        <telerik:EditorTool Name="InsertTable" />
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                        <telerik:EditorTool Name="InsertSymbol" />
                                    </telerik:EditorToolGroup>
                                </Tools>
                                <CssFiles>
                                    <telerik:EditorCssFile Value="~/Styles/RadEditor.css" />
                                </CssFiles>
                            </telerik:RadEditor>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label15" runat="server" Text="Reason for Recruitment"></asp:Label>
                <span class="require">(*)</span>
            </div>
            <div class="control">
                <asp:RadioButtonList ID="rdlLyDoTuyen" runat="server" RepeatDirection="Horizontal"
                    onClick="CheckReplace();" Enabled="false">
                    <asp:ListItem Value="1" Selected="True">New</asp:ListItem>
                    <asp:ListItem Value="2">Replace</asp:ListItem>
                    <asp:ListItem Value="3">Staff Movement</asp:ListItem>
                </asp:RadioButtonList>
            </div>
            <div id="divReplaceFor" style="display: none">
                <div class="label">
                    <asp:Label ID="Label16" runat="server" Text="Replace for"></asp:Label>
                    <span class="require">(*)</span>
                </div>
                <div class="control">
                    <telerik:RadComboBox ID="cboReplaceFor" runat="server" Width="255px" DataTextField="Name"
                        DataValueField="ID" EnableLoadOnDemand="true" AllowCustomText="false" MarkFirstMatch="true"
                        HighlightTemplatedItems="True" DataSourceID="dtsReplaceFor" Enabled="false">
                        <HeaderTemplate>
                            <ul class="comboHeader">
                                <li class="code">
                                    <asp:Label ID="Label2" runat="server" Text="Code"></asp:Label>
                                </li>
                                <li class="name">
                                    <asp:Label ID="Label3" runat="server" Text="Name"></asp:Label>
                                </li>
                                <li class="divClear"></li>
                            </ul>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <ul class="comboItem">
                                <li class="code">
                                    <%#DataBinder.Eval(Container.DataItem, "Code")%></li>
                                <li class="name">
                                    <%#DataBinder.Eval(Container.DataItem, "Name")%></li>
                            </ul>
                        </ItemTemplate>
                        <FooterTemplate>
                            <div class="comboFooter">
                                <asp:Label ID="Label4" runat="server" Text="Please enter text to show more items"></asp:Label>
                            </div>
                        </FooterTemplate>
                    </telerik:RadComboBox>
                    <core:CoreDataSource ID="dtsReplaceFor" runat="server" SelectMethod="GetComboUserReplace"
                        TypeName="vHCS.RE.Business.RE_RequestCollection" EnableCaching="False" MaximumRowsParameterName="">
                        <SelectParameters>
                            <asp:Parameter Name="prefix" DefaultValue="" DbType="String" />
                            <asp:Parameter Name="addNullItem" DefaultValue="false" DbType="Boolean" />
                            <asp:Parameter Name="getTop" DefaultValue="true" DbType="Boolean" />
                            <asp:ControlParameter Name="LyDoTuyen" ControlID="rdlLyDoTuyen" DefaultValue="1"
                                PropertyName="SelectedValue" DbType="String" />
                        </SelectParameters>
                    </core:CoreDataSource>
                </div>
                <br />
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label17" runat="server" Text="Quantity"></asp:Label>
                <span class="require">(*)</span>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtSoLuongTuyen" CssClass="inputText" Type="Number"
                    MinValue="0" MaxLength="2" runat="server" Width="250px" Enabled="false">
                    <NumberFormat DecimalDigits="0" GroupSeparator=","></NumberFormat>
                    <EnabledStyle HorizontalAlign="Right" />
                </telerik:RadNumericTextBox>
                <br />
                <asp:RequiredFieldValidator ID="ReqSoLuong" runat="server" ControlToValidate="txtSoLuongTuyen"
                    ErrorMessage="Please input quantity." CssClass="validation" Display="Dynamic"
                    ValidationGroup="Approve" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
            </div>
            <div class="label">
                <asp:Label ID="Label18" runat="server" Text="Working place"></asp:Label>
                <span class="require">(*)</span>
            </div>
            <div class="control">
                <telerik:RadComboBox ID="cboVanphonglamviec" runat="server" Width="80%" MarkFirstMatch="true"
                    AllowCustomText="false" DataSourceID="dtsOffice" OnClientFocus="ShowDropDown"
                    DataTextField="Name" DataValueField="ID" Enabled="false">
                </telerik:RadComboBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="cboVanphonglamviec"
                    ErrorMessage="Work place is not blank" CssClass="validation" Display="Dynamic"
                    ValidationGroup="Approve">
                </asp:RequiredFieldValidator>
                <core:CoreDataSource ID="dtsOffice" runat="server" SelectMethod="GetComboItems" TypeName="vHCS.LS.Business.LS_WorkPlaceCollection"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="p_strPrefix" DefaultValue="" DbType="String" />
                        <asp:Parameter Name="p_bAddNullItem" DefaultValue="true" DbType="Boolean" />
                        <asp:Parameter Name="p_bGetTop" DefaultValue="false" DbType="Boolean" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label19" runat="server" Text="Gender"></asp:Label>
                <span class="require">(*)</span>
            </div>
            <div class="control">
                <asp:RadioButtonList ID="rdlGender" runat="server" RepeatDirection="Horizontal" Enabled="false">
                    <asp:ListItem Value="1">Male</asp:ListItem>
                    <asp:ListItem Value="2">Female</asp:ListItem>
                    <asp:ListItem Value="3" Selected="True">Male/Female</asp:ListItem>
                </asp:RadioButtonList>
            </div>
            <div class="label">
                <asp:Label ID="Label20" runat="server" Text="Job Type"></asp:Label>
                <span class="require">(*)</span>
            </div>
            <div class="control">
                <asp:RadioButtonList ID="rdlJobType" runat="server" RepeatDirection="Horizontal"
                    Enabled="false">
                    <asp:ListItem Value="1" Selected="True">Full Time</asp:ListItem>
                    <asp:ListItem Value="2">Part Time</asp:ListItem>
                    <asp:ListItem Value="3">Freelance</asp:ListItem>
                </asp:RadioButtonList>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label21" runat="server" Text="Report to"></asp:Label>
                <span class="require">(*)</span>
            </div>
            <div class="control">
                <telerik:RadComboBox ID="cboReportTo" Width="255px" MarkFirstMatch="true" HighlightTemplatedItems="True"
                    DropDownWidth="500px" EnableLoadOnDemand="True" OnItemsRequested="RadComboBox_ItemRequested"
                    OnClientFocus="ShowDropDown" runat="server" DataSourceID="dtsReportTo" AllowCustomText="false"
                    DataTextField="Name" DataValueField="Id" Enabled="false">
                    <HeaderTemplate>
                        <ul class="comboHeader">
                            <li class="code">
                                <asp:Label ID="Label2" runat="server" Text="Code"></asp:Label>
                            </li>
                            <li class="name">
                                <asp:Label ID="Label3" runat="server" Text="Name"></asp:Label>
                            </li>
                            <li class="divClear"></li>
                        </ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <ul class="comboItem">
                            <li class="code">
                                <%#DataBinder.Eval(Container.DataItem, "Code")%></li>
                            <li class="name">
                                <%#DataBinder.Eval(Container.DataItem, "Name")%></li>
                        </ul>
                    </ItemTemplate>
                    <FooterTemplate>
                        <div class="comboFooter">
                            <asp:Label ID="Label4" runat="server" Text="Please enter text to show more items"></asp:Label>
                        </div>
                    </FooterTemplate>
                </telerik:RadComboBox>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="cboReportTo"
                    ErrorMessage="Vui lòng chọn người báo cáo." CssClass="validation" Display="Dynamic"
                    ValidationGroup="Approve" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
                <core:CoreDataSource ID="dtsReportTo" runat="server" SelectMethod="GetComboItems"
                    TypeName="vHCS.SYS.Business.SYS_UsersCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="prefix" DefaultValue="" DbType="String" />
                        <asp:Parameter Name="addNullItem" DefaultValue="true" Type="Boolean" />
                        <asp:Parameter Name="getTop" DefaultValue="true" Type="Boolean" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <div class="label">
                <asp:Label ID="Label106" runat="server" Text="Position Class Standard"></asp:Label></div>
            <div class="control">
                <telerik:RadComboBox ID="cboPCStandard" runat="server" Width="80%" AllowCustomText="false"
                    MarkFirstMatch="true" OnClientFocus="ShowDropDown" DataTextField="Name" DataValueField="Id"
                    DataSourceID="dtsPCStandard" Filter="Contains" OnClientSelectedIndexChanging="chkPC.OnClientSelectedIndexChanging"
                    OnClientLoad="chkPC.OnClientLoad" OnClientDropDownClosing="chkPC.OnClientDropDownClosing"
                    OnClientBlur="chkPC.OnClientBlur" Enabled="false">
                    <ItemTemplate>
                        <div style="width: 100%" onclick="chkPC.OnClick(this,event);">
                            <asp:CheckBox runat="server" ID="chkPC" onclick="chkPC.OnClick(this,event);"
                                Text="" />
                            <%# DataBinder.Eval(Container, "Text") %>
                        </div>
                    </ItemTemplate>
                    <FooterTemplate>
                        <div class="divButton">
                            <asp:LinkButton ID="btnSelectAll" OnClientClick="chkPC.SelectAll();return false;"
                                CssClass="selectAll" runat="server" Text="Chọn tất cả"></asp:LinkButton>
                            <asp:LinkButton ID="btnUnSelectAll" OnClientClick="chkPC.DeselectAll();return false;"
                                CssClass="deselectAll" runat="server" Text="Bỏ chọn"></asp:LinkButton>
                        </div>
                    </FooterTemplate>
                </telerik:RadComboBox>
                <br />
                <core:CoreDataSource ID="dtsPCStandard" runat="server" SelectMethod="GetPCFrọmobLevel"
                    TypeName="vHCS.LS.Business.LS_JobLevelCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="p_bAddNullItem" DefaultValue="false" DbType="Boolean" />
                        <asp:Parameter Name="Activity" DefaultValue="Standard" DbType="String" />
                        <asp:ControlParameter ControlID="cboCapbac" Name="LSjoblevelID" DbType="Int64" PropertyName="SelectedValue" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <div class="divClear">
            </div>
        </div>

        <div class="div4Column" style="display:none" >
            <div class="label">
                <asp:Label ID="Label107" runat="server" Text="Position Class Apply"></asp:Label></div>
            <div class="control">
                <telerik:RadComboBox ID="cboPCApply" runat="server" Width="255px" AllowCustomText="false"
                    MarkFirstMatch="true" OnClientFocus="ShowDropDown" DataTextField="Name" DataValueField="Id"
                    DataSourceID="dtsPCApply" Enabled="false">
                </telerik:RadComboBox>
                <br />
                <core:CoreDataSource ID="dtsPCApply" runat="server" SelectMethod="GetPCFrọmobLevel"
                    TypeName="vHCS.LS.Business.LS_JobLevelCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="p_bAddNullItem" DefaultValue="true" DbType="Boolean" />
                        <asp:Parameter Name="Activity" DefaultValue="Apply" DbType="String" />
                        <asp:Parameter Name="LSjoblevelID" DbType="Int64" DefaultValue="0" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <div class="divClear">
            </div>
        </div>

        <div class="headerSession">
            <asp:Label ID="Label22" runat="server" Text="APPROVEMENT INFORMATION"></asp:Label>
        </div>
        <div id="divApprove" style="display: " runat="server">
            <div class="divGrid">
                <core:VNGRadGrid ID="dtgApproveList" runat="server" AutoGenerateColumns="false" AllowPaging="true"
                    AllowMultiRowSelection="True" AllowFilteringByColumn="True" AllowSorting="true"
                    DataSourceID="dtsApproveList">
                    <mastertableview width="100%">
                <Columns>                    
                <telerik:GridBoundColumn DataField="UserName" HeaderText="User Name" HeaderStyle-Width="100px"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                    <telerik:GridBoundColumn DataField="RoleName" HeaderText="Approve Role" HeaderStyle-Width="100px"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                    <telerik:GridBoundColumn DataField="ReceiveDate" HeaderText="Receive Date" HeaderStyle-Width="100px"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                    <telerik:GridBoundColumn DataField="ApproveDate" HeaderText="Approve Date" HeaderStyle-Width="100px"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                     <telerik:GridBoundColumn DataField="Status" HeaderText="Status" HeaderStyle-Width="100px"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                    <telerik:GridBoundColumn DataField="Comment" HeaderText="Comment" HeaderStyle-Width="300px"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                </Columns>
                <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                    Position="Bottom" />
            </mastertableview>
                    <clientsettings enablerowhoverstyle="true">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1">
                </Scrolling>
            </clientsettings>
                </core:VNGRadGrid>
                <core:CoreDataSource ID="dtsApproveList" runat="server" SelectMethod="GetApproveHistory"
                    TypeName="vHCS.RE.Business.RE_RequestCollection" EnableCaching="False" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="RequestID" ControlID="hdfRequestID" PropertyName="Value" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <br />
        </div>
        <div class="divClear">
        </div>
        <div id="divApproveInfo" style="display: none" runat="server">
            <div class="div4Column">
                <div class="labelNoText" style="text-align: left; font-weight: bold">
                    <asp:Label ID="lblRoleInfo" runat="server" Text=""></asp:Label>
                </div>
            </div>
            <br />
            <div id="divAddHRP" runat="server">
                <div class="div2Column">
                    <div class="label">
                        <asp:Label ID="lblOrgchart_L" runat="server" Text="OrgChart"></asp:Label></div>
                    <div class="div5Colum">
                        <telerik:RadComboBox ID="cboOrgChart" runat="server" Width="560px" Height="200px"
                            OnClientDropDownOpened="ctrlUserSearch_treeOrgChart.OnClientDropDownOpenedHandler"
                            ExpandAnimation-Type="None" CollapseAnimation-Type="None" OnClientFocus="ShowDropDown"
                            OnSelectedIndexChanged="cboOrgChart_SelectedIndexChanged" Enabled="false">
                            <ItemTemplate>
                                <div class="noneItem" onclick="ctrlUserSearch_treeOrgChart.noneItemClick();">
                                </div>
                                <div id="divOrgChart">
                                    <telerik:RadTreeView runat="server" ID="trvOrgChart" Width="560px" OnClientNodeClicking="ctrlUserSearch_treeOrgChart.nodeClicking"
                                        DataFieldID="HierarchyId" DataFieldParentID="ParentId" DataSourceID="dtsOrgChart"
                                        DataTextField="HierarchyName" DataValueField="HierarchyId">
                                    </telerik:RadTreeView>
                                </div>
                                <div class="divButton">
                                    <asp:LinkButton ID="btnCollapseAll" CssClass="treeCollapse" OnClientClick="treeExpandCollapse.treeCollapseAllNodes(); return false;"
                                        runat="server" Text="Collapse"></asp:LinkButton>
                                    <asp:LinkButton ID="btnExpandAll" CssClass="treeExpand" OnClientClick="treeExpandCollapse.treeExpandAllNodes(); return false;"
                                        runat="server" Text="Expanse"></asp:LinkButton>
                                </div>
                            </ItemTemplate>
                            <Items>
                                <telerik:RadComboBoxItem Text="" Value="" />
                            </Items>
                            <ExpandAnimation Type="None"></ExpandAnimation>
                            <CollapseAnimation Type="None"></CollapseAnimation>
                        </telerik:RadComboBox>
                        <br />
                        <asp:CustomValidator ID="CustomValidator2" runat="server" CssClass="validation" ValidationGroup="Approve"
                            Display="Dynamic" ClientValidationFunction="checkAreaDept" ErrorMessage="Please chose department of orgchart.">
                        </asp:CustomValidator>
                        <core:CoreDataSource ID="dtsOrgChart" runat="server" SelectMethod="FindOrgChart"
                            TypeName="vHCS.HR.Business.HIE_HierarchyCollection" MaximumRowsParameterName="">
                        </core:CoreDataSource>
                    </div>
                    <div class="divClear">
                    </div>
                </div>
                <div class="div2Column">
                    <div class="label">
                        <asp:Label ID="Label25" runat="server" Text="Current headcount (official staff)"></asp:Label>
                    </div>
                    <div class="control">
                        <asp:TextBox ID="txtCurrentCount" ReadOnly="true" runat="server" MaxLength="50" CssClass="inputText"
                            Width="225px" Style="text-align: right" Enabled="false"></asp:TextBox>
                    </div>
                    <div class="divClear">
                    </div>
                </div>
                <div class="div2Column">
                    <div class="label">
                        <asp:Label ID="Label37" runat="server" Text="Current headcount (collaborators)"></asp:Label>
                    </div>
                    <div class="control">
                        <asp:TextBox ID="txtCurrentCount1" ReadOnly="true" runat="server" MaxLength="50" CssClass="inputText"
                            Width="225px" Style="text-align: right" Enabled="false"></asp:TextBox>
                    </div>
                    <div class="divClear">
                    </div>
                </div>
                <div class="div2Column">
                    <div class="label">
                        <asp:Label ID="Label26" runat="server" Text="Headcount Plan"></asp:Label>
                    </div>
                    <div class="control">
                        <asp:HyperLink ID="hplBugdetTool" runat="server" Text="Budget tool to view details"
                            NavigateUrl="http://bgtprodapp01.vng.com.vn:19000/workspace" Target="_blank"></asp:HyperLink>
                    </div>
                    <div class="divClear">
                    </div>
                </div>
                <br />
                <div class="div2Column">
                    <div class="label">
                        <asp:Label ID="Label27" runat="server" Text="In Budget"></asp:Label>
                        <span class="require">(*)</span>
                    </div>
                    <div class="control">
                        <asp:RadioButtonList ID="rdlBugdet" runat="server" RepeatDirection="Horizontal" Enabled="false">
                            <asp:ListItem Value="1" Selected="true">Yes</asp:ListItem>
                            <asp:ListItem Value="0">No</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <div class="divClear">
                    </div>
                </div>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label23" runat="server" Text="Receive Date"></asp:Label>
                    <span class="require">(*)</span>
                </div>
                <div class="control">
                    <core:VNGRadDatePicker ID="dtpReceiveDate" Enabled="false" Width="255px" CssClass="datePicker"
                        runat="server">
                    </core:VNGRadDatePicker>
                </div>
                <div class="divClear">
                </div>
                <asp:RequiredFieldValidator ID="RequiredDate" runat="server" ControlToValidate="dtpReceiveDate"
                    ErrorMessage="Vui lòng nhập Receive Date." CssClass="validation" Display="Dynamic"
                    ValidationGroup="Approve" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label24" runat="server" Text="Approve Date"></asp:Label>
                    <span class="require">(*)</span>
                </div>
                <div class="control">
                    <core:VNGRadDatePicker ID="dtpApproveDate" Enabled="false" Width="255px" CssClass="datePicker"
                        runat="server">
                    </core:VNGRadDatePicker>
                </div>
                <div class="divClear">
                </div>
                <asp:RequiredFieldValidator ID="ApproveDate" runat="server" ControlToValidate="dtpApproveDate"
                    ErrorMessage="Vui lòng nhập Approve Date." CssClass="validation" Display="Dynamic"
                    ValidationGroup="Approve" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" ControlToCompare="dtpReceiveDate" Operator="GreaterThanEqual"
                    Type="Date" Display="Dynamic" CssClass="validation" ControlToValidate="dtpApproveDate"
                    runat="server" ErrorMessage="Approve date >= receive date" SetFocusOnError="true"
                    ValidationGroup="Approve">
                </asp:CompareValidator>
            </div>
            <div id="divHRHead" style="display: none" runat="server">
                <div class="div2Column">
                    <div class="label">
                        <asp:Label ID="Label29" runat="server" Text="Send to HR Head"></asp:Label>
                    </div>
                    <div class="control">
                        <asp:RadioButtonList ID="rdlHRHead" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="1">Yes</asp:ListItem>
                            <asp:ListItem Value="0" Selected="true">No</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <div class="divClear">
                    </div>
                </div>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label28" runat="server" Text="Comment"></asp:Label>
                    <span class="require">(*)</span>
                </div>
                <div class="control">
                    <asp:TextBox ID="txtComment" Rows="6" Height="40px" runat="server" Style="width: 550px"
                        CssClass="inputMultiText"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="reqComment" runat="server" ControlToValidate="txtComment"
                        ErrorMessage="Please input comment." CssClass="validation" Display="Dynamic"
                        SetFocusOnError="True" ValidationGroup="Approve"></asp:RequiredFieldValidator>
                </div>
                <div class="divClear">
                </div>
            </div>
        </div>
        <div class="divClear">
        </div>
        <div id="divRRM" style="display: none" runat="server">
            <br />
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label36" runat="server" Text="Request Code"></asp:Label>
                    <span class="require">(*)</span>
                </div>
                <div class="control">
                    <asp:TextBox ID="txtRequestCode" runat="server" MaxLength="50" CssClass="inputText"
                        Width="225px"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="ReqCode" runat="server" ControlToValidate="txtRequestCode"
                        ErrorMessage="Please input request code." CssClass="validation" Display="Dynamic"
                        ValidationGroup="Approve" SetFocusOnError="True" Enabled="false">
                    </asp:RequiredFieldValidator>
                </div>
                <div class="divClear">
                </div>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label30" runat="server" Text="Handle by"></asp:Label>
                    <span class="require">(*)</span>
                </div>
                <div class="control">
                    <asp:TextBox ID="txtHandle" runat="server" MaxLength="50" CssClass="inputText" Width="225px"></asp:TextBox>
                    <asp:ImageButton ID="btnVerify" ToolTip="Verify" runat="server" ImageUrl="~/Images/verify.gif"
                        ValidationGroup="Verify" OnClick="btnVerify_click" />
                    <br />
                    <asp:RequiredFieldValidator ID="ReqHandle" runat="server" ControlToValidate="txtHandle"
                        ErrorMessage="Please input handle by." CssClass="validation" Display="Dynamic"
                        ValidationGroup="Approve" SetFocusOnError="True" Enabled="false">
                    </asp:RequiredFieldValidator>
                </div>
                <div class="divClear">
                </div>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label31" runat="server" Text="Leadtime Standard"></asp:Label>
                </div>
                <div class="control">
                    <asp:TextBox ID="txtLeadTimeSD" ReadOnly="true" runat="server" MaxLength="50" CssClass="inputText"
                        Width="225px" Style="text-align: right"></asp:TextBox>
                </div>
                <div class="divClear">
                </div>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label32" runat="server" Text="Leadtime Expected"></asp:Label>
                </div>
                <div class="control">
                    <telerik:RadNumericTextBox ID="LeadTimeEP" runat="server" Type="Number" Width="225px"
                        NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="," CssClass="inputText"
                        MaxLength="9" MinValue="0">
                        <EnabledStyle HorizontalAlign="Right" />
                    </telerik:RadNumericTextBox>
                </div>
                <div class="divClear">
                </div>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label35" runat="server" Text="Unique Role"></asp:Label>
                </div>
                <div class="control">
                    <asp:RadioButtonList ID="rdlUnirole" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Selected="true">Yes</asp:ListItem>
                        <asp:ListItem Value="0">No</asp:ListItem>
                    </asp:RadioButtonList>
                </div>
                <div class="divClear">
                </div>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label33" runat="server" Text="Difficult Level"></asp:Label>
                </div>
                <div class="control">
                    <telerik:RadComboBox ID="cboDiff" runat="server" Width="230px" AllowCustomText="false"
                        MarkFirstMatch="true" OnClientFocus="ShowDropDown" DataTextField="Name" DataValueField="Id"
                        DataSourceID="dtsDif">
                    </telerik:RadComboBox>
                    <core:CoreDataSource ID="dtsDif" runat="server" SelectMethod="GetComboDifficult"
                        TypeName="vHCS.RE.Business.RE_ProcessHistoryCollection" EnableCaching="False"
                        MaximumRowsParameterName="">
                        <SelectParameters>
                            <asp:Parameter Name="AddNullItem" DefaultValue="true" DbType="Boolean" />
                        </SelectParameters>
                    </core:CoreDataSource>
                </div>
                <div class="divClear">
                </div>
            </div>
            <div class="div2Column">
                <div class="label">
                    <asp:Label ID="Label34" runat="server" Text="Priority"></asp:Label>
                </div>
                <div class="control">
                    <telerik:RadComboBox ID="cboPrio" runat="server" Width="230px" AllowCustomText="false"
                        MarkFirstMatch="true" OnClientFocus="ShowDropDown" DataTextField="Name" DataValueField="Id"
                        DataSourceID="dtsPrio">
                    </telerik:RadComboBox>
                    <core:CoreDataSource ID="dtsPrio" runat="server" SelectMethod="GetComboPriority"
                        TypeName="vHCS.RE.Business.RE_ProcessHistoryCollection" EnableCaching="False"
                        MaximumRowsParameterName="">
                        <SelectParameters>
                            <asp:Parameter Name="AddNullItem" DefaultValue="true" DbType="Boolean" />
                        </SelectParameters>
                    </core:CoreDataSource>
                </div>
                <div class="divClear">
                </div>
            </div>
        </div>
    </div>
    <div class="divClear">
    </div>
    <div class="formTitle">
        <div class="formToolbar">
            <asp:Button ID="btnApprove_Bot" runat="server" Text="Approve" CssClass="btnApprove"
                ValidationGroup="Approve" OnClick="btnApprove1_Click" />
            <asp:Button ID="btnReject_Bot" runat="server" Text="Reject" CssClass="btnReject"
                ValidationGroup="Approve" OnClick="btnReject_Click" />
            <%--<asp:Button ID="btnList_Bot" runat="server" Text="Danh sách" CssClass="btnList" OnClick="btnList_Top_Click" />--%>
        </div>
    </div>
    <%-- <telerik:RadAjaxManager ID="ajaxManager" runat="server">
        <AjaxSettings>            
            <telerik:AjaxSetting AjaxControlID="cboChucVu">
                  <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="cboBoPhan" LoadingPanelID="ajaxLoadingPanel" />
                       <telerik:AjaxUpdatedControl ControlID="cboPhongBan" LoadingPanelID="ajaxLoadingPanel" />                                              
                 </UpdatedControls>
              </telerik:AjaxSetting>

               <telerik:AjaxSetting AjaxControlID="cboBoPhan">
                  <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="cboChucVu" LoadingPanelID="ajaxLoadingPanel" />
                       <telerik:AjaxUpdatedControl ControlID="cboPhongBan" LoadingPanelID="ajaxLoadingPanel" />                                              
                 </UpdatedControls>
              </telerik:AjaxSetting>

               <telerik:AjaxSetting AjaxControlID="cboPhongBan">
                  <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="cboChucVu" LoadingPanelID="ajaxLoadingPanel" />
                       <telerik:AjaxUpdatedControl ControlID="cboBoPhan" LoadingPanelID="ajaxLoadingPanel" />                                              
                 </UpdatedControls>
              </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server">
    </telerik:RadAjaxLoadingPanel>--%>
    <telerik:RadCodeBlock ID="radCodeBlock" runat="server">
        <script type="text/javascript">

            var ctrlUserSearch_treeOrgChart = new TreeViewInRadCombo("<%=cboOrgChart.ClientID %>", "trvOrgChart");
            var treeMgtChart = new TreeViewInRadCombo("<%=cboMgtChart.ClientID%>", "trvMgtChart");
            var treeProChart = new TreeViewInRadCombo("<%=cboProChart.ClientID%>", "trvProChart");

            var treeProJobChart = new TreeExpandCollapse("<%=trvProChartClientId %>");
            var treeMgtJobChart = new TreeExpandCollapse("<%=trvMgtChartClientId %>");

            var tooltip_prochart = new SetToolTip("cboProChart", "rttProChart_input");
            var tooltip_mgtchart = new SetToolTip("cboMgtChart", "rttMgtChart_Input");

            var chkPC = new CheckBoxInRadCombo("<%=cboPCStandard.ClientID %>", "<%=hdfPCStandard.ClientID %>");


            function SetEmpty(sender, event) {
                if (sender.get_value() == "") {
                    sender.set_text("");
                }
            }
            function SetToolTip(senderid, tooltipid) {

                this.SetToolTip_OrChart = function (sender, args) {
                    var id = sender.get_id();
                    var rtt = $find(id.replace(senderid, tooltipid));
                    rtt.set_text(sender.get_text());
                }
            }
            function checkProJob(source, args) {
                var ProJob = document.getElementById("<%=cboProChart.ClientID%>");
                var temp = ProJob.value.split('->');
                if (temp != "" && temp.length < 3) {
                    args.IsValid = false;
                    return false;
                }
                return true;

            }

            CheckReplace();
            function CheckReplace() {
                var rdLyDoID = document.getElementById("MainContent_rdlLyDoTuyen_1");
                var rdLyDoID3 = document.getElementById("MainContent_rdlLyDoTuyen_2");
                var divReplaceFor = document.getElementById("divReplaceFor");
                if (rdLyDoID.checked || rdLyDoID3.checked) {
                    divReplaceFor.style.display = "";
                } else {
                    divReplaceFor.style.display = "none";
                }

            }
            function checkAreaDept(source, args) {
                var Dept = document.getElementById("<%=cboOrgChart.ClientID%>");
                if (Dept.value != "") {
                    var temp = Dept.value.split('->');
                    if (temp.length < 3) {
                        args.IsValid = false;
                        return false;
                    }
                }
                return true;
            }
            //            function CheckRequestCode() {
            //                var reqCode = document.getElementById("<%=txtRequestCode.ClientID%>");
            //                alert(reqCode.value);
            //            }       

            function ClosePage() {
                window.close();
            }
        </script>
    </telerik:RadCodeBlock>
</asp:Content>
